import MyLayout from "@/components/my-layout/index.vue";

import { RouteNames } from "../names";

export const appRoutes = {
    path: "/",
    redirect: "/dashboard",
    meta: { title: "App", icon: "ic:outline-touch-app", alwaysShow: true },
    component: MyLayout,
    children: [
        {
            name: RouteNames.dashboard,
            path: "/dashboard",
            meta: { title: "用户信息", icon: "bx:home" },
            component: () => import("@/pages/dashboard/index.vue"),
        },
        {
            name: RouteNames.allReceive,
            path: "/allReceive",
            meta: { title: "充值列表", icon: "tabler:dashboard" },
            component: () => import("@/pages/allReceive/index.vue"),
        },
        {
            name: RouteNames.allSend,
            path: "/allSend",
            meta: { title: "提币列表", icon: "activity" },
            component: () => import("@/pages/allSend/index.vue"),
        },
        {
            name: RouteNames.allTransfer,
            path: "/allTransfer",
            meta: { title: "转账列表", icon: "mdi:human-hello-variant" },
            component: () => import("@/pages/allTransfer/index.vue"),
        },
        {
            name: RouteNames.allInvest,
            path: "/allInvest",
            meta: { title: "入金列表", icon: "tabler:dashboard" },
            component: () => import("@/pages/allInvest/index.vue"),
        },
        {
            name: RouteNames.announcement,
            path: "/announcement",
            meta: { title: "公告列表", icon: "ion:logo-web-component" },
            component: () => import("@/pages/announcement/index.vue"),
        },
        {
            name: RouteNames.parameter,
            path: "/parameter",
            meta: { title: "参数配置", icon: "gg:menu-round" },
            component: () => import("@/pages/parameter/index.vue"),
        },
    ],
};
